<template>
  <div class="ui-empty">
    <div class="ui-empty__icon"></div>
    <div class="ui-empty__text">
      <slot>暂无数据</slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'UiEmpty'
}
</script>
<style lang="less">
.ui-empty{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.7em;
}
.ui-empty__icon{
  display: inline-block;
  width: 120px;
  height: 120px;
  background: url('./icon.svg') no-repeat 50% 50%;
  background-size: 100%;
  margin-bottom: 6px;
}
.ui-empty__text{
  color: #aaa;
}
</style>
